package tech.xiaozai.exam.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import tech.xiaozai.common.json.Date2LongSerializer;

import java.util.Date;
import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-09-22 08:58
 */
@Data
public class UserBO {
    private Long id;
    private String username;
    private String password;
    private Byte state;
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date registerTime;

    //用户拥有的角色ID列表
    private List<Long> roleIds;
}
